/**
 * 
 */
package com.vladimirjosu.fhc;

import java.util.List;

import com.vladimirjosu.util.Util;

/**
 * @author vjosu
 * 
 */
public class Main {

	/**
	 * @param args
	 */
	public void mains() {

		String inputFile = "card_game.txt";
		String oututFile = "card_game.txt";
		List<String> mInput = Util.readInput(inputFile);
		String filePath = Util.getUserDirectory("output/") + oututFile;
		Util.write(filePath, "", false);
		for (int i = 1; i < mInput.size(); i++) {
			// String string = mInput.get(i);
			// BeautifulStrings problem = new BeautifulStrings(string);
			// BalancedSmileys problem = new BalancedSmileys(string);
			// FindMin problem = new FindMin(97, 39, 34, 37, 656, 97);
			// CardGame problem = new CardGame(mInput.get(i), mInput.get(++i));
			Security problem = new Security(mInput.get(i), mInput.get(++i),
					mInput.get(++i));
			// DeadPixels problem = new DeadPixels(mInput.get(i));
			String result = problem.solve();
			String output = "Case #" + i / 3 + ": " + result + "\n";
			Util.write(filePath, output, true);
			Util.log(output);
		}
	}
}
